package com.kupurui.asteacher.http;

import com.android.frame.http.HttpListener;
import com.android.frame.http.HttpUtils;
import com.android.frame.http.RequestParams;
import com.kupurui.asteacher.config.AppConfig;

/**
 * Created by Administrator on 2017/8/30.
 */

public class MessageReq {


    /**
     * 作业，通知消息
     * @param tid
     * @param listener
     * @param what
     */
    public void message(String tid, HttpListener listener, int what){
        RequestParams params = new RequestParams();
        params.addParam("tid",tid);
        new HttpUtils().doCall(AppConfig.BASE_URL+"teacher/message", params, listener, what);
    }

    /**
     * 通知消息
     * @param tid
     * @param listener
     * @param what
     */
    public void info_message(String tid, HttpListener listener, int what){
        RequestParams params = new RequestParams();
        params.addParam("tid",tid);
        new HttpUtils().doCall(AppConfig.BASE_URL+"teacher/info_message", params, listener, what);
    }

}
